<div class="middleFront">
    <div class="navigation secondPageSprite"></div>
    <div class="infoText infoTitle">
        <?php echo lang('write_message_municipality');?><span class="black_letters"><?php echo " <b>".$municipality[0]->municipality_name."</b>"?></span><br />
        <?php echo lang('write_message_heading_text')?>
    </div>
    <div class="representativeHolder">
        <table width="100%" border="0">
            <tr>
                <td colspan="2" align="center" class="localnaVlast">
                    <img src="<?php echo base_url()."style/images/sk_logo.jpg";?>"><br />
                    <p><?php echo lang('representative_lokalna_vlast')?></p><br />
                </td>
                <td align="center" class="centralnaVlast">
                    <img src="<?php echo base_url()."style/images/sobranie.gif";?>"><br />
                    <p><?php echo lang('representative_centralna_vlast')?></p><br />
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
                <td class="mainColumns">&nbsp;</td>
            </tr>
            <tr>
                <th class="tableHeading firstColumn thTitle"><?php echo lang('representative_gradonacalnik')?></th>
                <th class="tableHeading thTitle mainColumnsFirst"><?php echo lang('representative_sovetnici')?></th>
                <th class="tableHeading thTitle"><?php echo lang('representative_pratenici')?></th>
            </tr>

            <tr>
                <td class="mainColumns firstColumn">
                    <?php
                        foreach ($gradonacalnici as $key=>$val) {
                    ?>
                        <div class="singleRepresentative">
                            <p><span>></span><a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><?php echo $val->rep_name." ".$val->rep_surname;?></a></p>
                            <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><img class="sendMail" src="<?php echo base_url()."/style/images/mail.png"?>" alt="Кликни за да пратиш порака"/></a>
                            <a href="<?php echo base_url().$this->lang->lang()."/messages/qustionsAnswers/".$val->role_id."/".$val->rep_id?>" class="aAndQ"><?php echo lang('questions_answers')?></a>
                            <div class="cleardiv"></div>
                        </div>
                    <?php
                    }
                    ?>
                    <div class="contactAll">
                        <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/3/all"?>"><?php echo lang('contact_all')?></a>
                    </div>
                </td>
                <td class="mainColumnsFirst">
                    <?php
                        foreach ($sovetnici as $key=>$val) {
                    ?>
                        <div class="singleRepresentative">
                            <p><span>></span><a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><?php echo $val->rep_name." ".$val->rep_surname;?></a></p>
                            <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><img class="sendMail" src="<?php echo base_url()."/style/images/mail.png"?>" alt="Кликни за да пратиш порака"/></a>
                            <a href="<?php echo base_url().$this->lang->lang()."/messages/qustionsAnswers/".$val->role_id."/".$val->rep_id?>" class="aAndQ"><?php echo lang('questions_answers')?></a>
                            <div class="cleardiv"></div>
                        </div>
                    <?php
                    }
                    ?>
                    <div class="contactAll">
                        <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/2/all"?>"><?php echo lang('contact_all')?></a>
                    </div>
                </td>
                <td class="mainColumns">
                    <?php
                        foreach ($pratenici as $key=>$val) {
                    ?>
                        <div class="singleRepresentative">
                            <p><span>></span><a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><?php echo $val->rep_name." ".$val->rep_surname;?></a></p>
                            <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/".$val->role_id."/".$val->rep_id?>"><img class="sendMail" src="<?php echo base_url()."/style/images/mail.png"?>" alt="Кликни за да пратиш порака"/></a>
                            <a href="<?php echo base_url().$this->lang->lang()."/representatives/answers/".$val->rep_id?>" class="aAndQ"><?php echo lang('questions_answers')?></a>
                            <div class="cleardiv"></div>
                        </div>
                    <?php
                    }
                    ?>
                    <div class="contactAll">
                        <a href="<?php echo base_url().$this->lang->lang()."/messages/writeMessage/1/all"?>"><?php echo lang('contact_all')?></a>
                    </div>
                </td>
            </tr>
        </table>
        
    </div>
    <div class="backToMunicipalityHolder">
        <div class="backToMunicipality">
            <a href="<?php echo base_url().$this->lang->lang()."/municipalities/chooseMunicipality"?>"><?php echo lang('choose_municipality')?></a>
        </div>
    </div>

    <div class="cleardiv"></div>
</div>

